package com.imooc.action;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.interceptor.ServletRequestAware;

import com.opensymphony.xwork2.ActionSupport;

public class HelloWorldAction extends ActionSupport implements ServletRequestAware{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private HttpServletRequest request;
	public void setServletRequest(HttpServletRequest arg0) {
		
	}
	
	//helloworld.action 123
	public String add(){
		return "add";
	}
	
	@Override
	public String execute() throws Exception {
		// ��һ�ַ�ʽ ActionContext
		
		System.out.println("Action ִ���ˡ�");
		return SUCCESS;
	}
	
	
	
	
	
	
	
}


























